package router

import (
	"github.com/gin-gonic/gin"
)

func InitRouter() *gin.Engine {
	//gin的中间件
	router := gin.Default()

	router.GET("health", func(c *gin.Context) {
		c.JSON(200, gin.H{
			"message": "pong",
		})
	})

	InitCategoryRouter(router)
	InitGoodsRouter(router)
	InitBannerRouter(router)
	InitBrandRouter(router)
	return router
}
